from flask import Flask
from cfg import DevelopmentConfig
from .exts import init_exts
from .user.view import user_db
from .user.model import User

def create_app():
    app = Flask(__name__)
    app.config.from_object(DevelopmentConfig)
    init_exts(app)
    app.register_blueprint(user_db)
    print(app.url_map)
    return app

